package com.boang.ref;

import java.lang.annotation.Annotation;
import java.lang.reflect.AnnotatedType;
import java.util.Arrays;
import java.util.List;

/*
    @author:sa
    @date:2024/12/11 16:57
*/
public class RefDemo01 {
    public static void main(String[] args) throws ClassNotFoundException {
        Class<?> aClass = Class.forName("com.boang.ref.TestAnno");
        Annotation[] annotations = aClass.getAnnotations();
        List<Annotation> list = Arrays.asList(annotations);
        list.forEach(System.out::println);
    }
}